

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="${grailsApplication.config.gk.layout}" />
        <title>My Profile</title>
    </head>
    <body>
        <div class="body">
            <h1>My Profile</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>

            <g:if test="${session?.user?.isLoggedIn() && session?.user?.profile == gprofile}">
              <div class="buttons">
                  <g:form>
                      <input type="hidden" name="id" value="${gprofile?.id}" />
                      <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
                  </g:form>
              </div>
            </g:if>

            <div class="dialog">
                <table>
                    <tbody>

                                        
                        <tr class="prop">
                            <td valign="top" class="name">Display Name:</td>
                            <td valign="top" class="value">${gprofile.displayName}</td>
                       </tr>

                        <tr class="prop">
                            <td valign="top" class="name">Image:</td>
                            <td valign="top" class="value">
                                ${gprofile.imageTag()}
                            </td>
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">URL:</td>
                            <td valign="top" class="value">${gprofile.homepageUri}</td>
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">Location:</td>
                            <td valign="top" class="value">${gprofile.location}</td>
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">Address:</td>
                            <td valign="top" class="value">${gprofile.address}</td>
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">City:</td>
                            <td valign="top" class="value">${gprofile.city}</td>
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">State:</td>
                            <td valign="top" class="value">${gprofile.state}</td>
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">ZIP / Postcode:</td>
                            <td valign="top" class="value">${gprofile.postcode}</td>
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Country:</td>
                            <td valign="top" class="value">${gprofile.country}</td>
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Phone Number:</td>
                            <td valign="top" class="value">${gprofile.phoneNumber}</td>
                        </tr>

                    </tbody>
                </table>
            </div>
        </div>
    </body>
</html>
